//鸡兔同笼
#include<stdio.h>
int main(void)
{int h,f,x,y;
h=16;
f=40;
y=(f-2*h)/2;
x=h-y;
printf("cock=%d,rabbit=%d\n",x,y);
return 0;
}